package com.haskie.api.entity;

import lombok.Data;

@Data
public class User {
    private Integer id;

    private String name;

    private String sex;

    private Integer age;

    public String getSex() {
        if ("0".equals(this.sex) || "女".equals(this.sex))
            return "女";
        if ("1".equals(this.sex) || "男".equals(this.sex))
            return "男";
        return "未知";
    }
}